<div class="row searchLineWrap">
	<form id="wcbook" name="wcbook" action="${cxt!}/wealthcollege/getWcbookList" method="post" class="form-horizontal">
		<div class="col-lg-12">
			<div class="row">
				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["wealth.college.bookname"]}:</label>
						<div class="col-md-7">
							<input type="text" class="form-control" name="wealthCollegeBook.l_bookname" placeholder="${_res['wealth.college.bookname']}" value="${paramMap['applicantForm.l_bookname']}" />
						</div>
					</div>
				</div>

				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["wealth.college.usergroup"]}:</label>
						<div class="col-md-7">
							<#dict type="select" name="wealthCollegeBook.f_usergroup" table="customer_role" filedName="name" filedValue="code" defaultValue="${paramMap['project.f_status']}"/>
						</div>
					</div>
				</div>

				<div class="col-md-3">
					<div class="form-group">
							<% if(hasPrivilegeUrl("getWcbookList")){ %>
								<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','wcbook')">
									<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
								</button> 
							<% } %>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>

<div class="row searchLineWrap">
	<p>
		<% if(hasPrivilegeUrl("/wealthcollege/addBook")){ %> 
			<a href="javascript:void(0);" onClick="ajaxContent('/admin/toUrl?toUrl=/realty/wealthcollege/addbook.html');" class="btn btn-primary pull-left">
				${_res["wealth.college.addbook"]}
			</a>
			<div class="clearfix"></div>
		<% } %>
	</p>
	<table class="table table-bordered" id="list-table">
		<thead>
			<tr>
				<th>${_res["wealth.college.bookname"]}</th>
				<th>${_res["wealth.college.theme.introduction"]}</th>
				<th>${_res["wealth.college.bookprice"]}</th>
				<th>${_res["wealth.college.usergroup"]}</th>
				<th>${_res["wealth.college.purchasenumber"]}</th>
				<th>${_res["user.review.processor"]}</th>
			</tr>
		</thead>
		<tbody>
			<% for(record in splitPage.list!){ %>
			<tr>
				<td style="background-color: rgb(255, 255, 255);">${record.bookname!}</td>
				<td style="background-color: rgb(255, 255, 255);">${record.bookintroduce!}</td>
				<td style="background-color: rgb(255, 255, 255);">${record.price!}</td>
				<td style="background-color: rgb(255, 255, 255);">
					<#dict type="lable" value="${record.usergroup!}" table="customer_role" filedName="name" filedValue="code" />
				</td>
				<td style="background-color: rgb(255, 255, 255);">${record.buytimes!}</td>
				<td style="background-color: rgb(255, 255, 255);">
					<!-- 下载功能实现 -->
					<% if(hasPrivilegeUrl("download")){ %>
						<button class="btn btn-sm btn-link" onClick="ajaxDownload('/wealthcollege/download/${record.id!}','fileName=/upload/${record.contenturl!}');">
							${_res["system.download"]}
						</button>
					<% } %>
					<% if(hasPrivilegeUrl("toEditBook")){ %>
						<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/wealthcollege/toEditBook/${record.id!}')">
							${_res["system.edit"]}
						</button>
					<% } %>
					<% if(hasPrivilegeUrl("deleteBook")){ %>
						<button type="button" class="btn btn-sm btn-link" data-trigger="confirm" onClick="ajaxDelete('/wealthcollege/deleteBook/${record.id!}')">
							${_res["system.delete"]}
						</button>
					<% } %>
				</td>
			</tr>
			<%}%>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="wcbook" /></div>
	<#nav />
</div>